package com.example.badyloans.servlet;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.example.badyloans.dao.TLoginLogMapper;
import com.example.badyloans.pojo.TLoginLog;
import com.example.badyloans.servlet.TLoginLogService;

import java.util.List;

@Service
public class TLoginLogServiceImpl implements TLoginLogService{

    @Resource
    private TLoginLogMapper tLoginLogMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return tLoginLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(TLoginLog record) {
        return tLoginLogMapper.insertSelective(record);
    }

    @Override
    public TLoginLog selectByPrimaryKey(Long id) {
        return tLoginLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TLoginLog record) {
        return tLoginLogMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int selectBy(String accountType,String username,String loginResult,String beginDate,String endDate) {
        return tLoginLogMapper.selectBy(accountType,username,loginResult,beginDate,endDate);
    }

    @Override
    public List<TLoginLog> selecttrecharge(String accountType, String username, int currentPageNo,
                                           int pageSize, String beginDate, String endDate, String loginResult) {
        return tLoginLogMapper.selecttrecharge(accountType,username,currentPageNo,pageSize,beginDate,endDate,loginResult);
    }

}
